package exdate;

import java.util.Date;

/**
 * @author: knowno
 * @create: 2025-09-15 09:25
 * @Version 1.0
 **/
public class TestDate {
    public static void main(String[] args) {
        //创建日期对象 java.util
        //java.util.Date date = new Date();
        Date date = new Date();
        System.out.println(System.currentTimeMillis());
        System.out.println(date);
        //java.sql.Date =>sql中引用 ,我们此时不用这个
        //获取时间

        long time = date.getTime();
        System.out.println(time);

    }
}
